/**
 * 返回按钮
 */
import React, { Component } from 'react';
import { Text } from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';

/**
 *
 * @param {string} logoUrl - logo 地址
 * @param {string} name - 名称
 * @param {function} logout - 退出
 * @param {setUp} setUp - 设置
 */
export default class HeaderRightAddButton extends Component {
  render() {
    const {
      click, color
    } = this.props;

    // const color2 = color || '#fff';

    return (
      <Text onPress={() => click()} style={{ marginRight: 5, width: 30, textAlign: 'center' }}>
        <Icon name="md-more" size={24} color={color} />
      </Text>

    );
  }
}
